﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.User
{
    /// <summary>
    /// 生资表实体
    /// </summary>
    [DataContract]
    [Table("QM_ProductionGoodsTB")]
    public partial class ProductionGoodsEntity : EntityObject
    {
        #region 内部变量

        private int _ProductionGoodsID;
        private int _AccountID;
        private string _Name;
        private string _Address;
        private string _LikeUserName;
        private string _LikePhone;
        private string _Content;
        private string _AlipayAccount;
        private string _AlipayName;
        private DateTime _CreateDateTime;
        private int _CreateUserID;
        private double _CommissionRules;

        #endregion

        //属性

        #region ProductionGoodsID
        /// <summary>
        /// ProductionGoodsID
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "ProductionGoodsID", IsNull = false)]
        public int UID
        {
            get { return _ProductionGoodsID; }
            set
            {
                _ProductionGoodsID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region 帐号唯一标识
        /// <summary>
        /// 帐号唯一标识
        /// </summary>
        [DataMember]
        [Column(Name = "AccountID", IsNull = false)]
        public int AccountID
        {
            get { return _AccountID; }
            set
            {
                _AccountID = value;
                ReportPropertyChanged("AccountID");
            }
        }
        #endregion

        #region 名称
        /// <summary>
        /// 名称
        /// </summary>
        [DataMember]
        [Column(Name = "Name", IsNull = false)]
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                ReportPropertyChanged("Name");
            }
        }
        #endregion

        #region 地址
        /// <summary>
        /// 地址
        /// </summary>
        [DataMember]
        [Column(Name = "Address", IsNull = false)]
        public string Address
        {
            get { return _Address; }
            set
            {
                _Address = value;
                ReportPropertyChanged("Address");
            }
        }
        #endregion

        #region 联系人
        /// <summary>
        /// 联系人
        /// </summary>
        [DataMember]
        [Column(Name = "LikeUserName", IsNull = false)]
        public string LikeUserName
        {
            get { return _LikeUserName; }
            set
            {
                _LikeUserName = value;
                ReportPropertyChanged("LikeUserName");
            }
        }
        #endregion

        #region 联系电话
        /// <summary>
        /// 联系电话
        /// </summary>
        [DataMember]
        [Column(Name = "LikePhone", IsNull = false)]
        public string LikePhone
        {
            get { return _LikePhone; }
            set
            {
                _LikePhone = value;
                ReportPropertyChanged("LikePhone");
            }
        }
        #endregion

        #region Content
        /// <summary>
        /// Content
        /// </summary>
        [DataMember]
        [Column(Name = "Content", IsNull = false)]
        public string Content
        {
            get { return _Content; }
            set
            {
                _Content = value;
                ReportPropertyChanged("Content");
            }
        }
        #endregion

        #region AlipayAccount
        /// <summary>
        /// AlipayAccount
        /// </summary>
        [DataMember]
        [Column(Name = "AlipayAccount", IsNull = false)]
        public string AlipayAccount
        {
            get { return _AlipayAccount; }
            set
            {
                _AlipayAccount = value;
                ReportPropertyChanged("AlipayAccount");
            }
        }
        #endregion

        #region AlipayName
        /// <summary>
        /// AlipayName
        /// </summary>
        [DataMember]
        [Column(Name = "AlipayName", IsNull = false)]
        public string AlipayName
        {
            get { return _AlipayName; }
            set
            {
                _AlipayName = value;
                ReportPropertyChanged("AlipayName");
            }
        }
        #endregion

        #region 创建时间
        /// <summary>
        /// 创建时间
        /// </summary>
        [DataMember]
        [Column(Name = "CreateDateTime", IsNull = false)]
        public DateTime CreateDateTime
        {
            get { return _CreateDateTime; }
            set
            {
                _CreateDateTime = value;
                ReportPropertyChanged("CreateDateTime");
            }
        }
        #endregion

        #region 创建者
        /// <summary>
        /// 创建者
        /// </summary>
        [DataMember]
        [Column(Name = "CreateUserID", IsNull = false)]
        public int CreateUserID
        {
            get { return _CreateUserID; }
            set
            {
                _CreateUserID = value;
                ReportPropertyChanged("CreateUserID");
            }
        }
        #endregion

        #region 佣金规则
        /// <summary>
        /// 佣金规则
        /// </summary>
        [DataMember]
        [Column(Name = "CommissionRules", IsNull = false)]
        public double CommissionRules
        {
            get { return _CommissionRules; }
            set
            {
                _CommissionRules = value;
                ReportPropertyChanged("CommissionRules");
            }
        }
        #endregion
    }
}
